package day0415;

public class Emperor {
    private String name;
    private String reignTime;
    private String achievements;
    private String description;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReignTime() {
        return reignTime;
    }

    public void setReignTime(String reignTime) {
        this.reignTime = reignTime;
    }

    public String getAchievements() {
        return achievements;
    }

    public void setAchievements(String achievements) {
        this.achievements = achievements;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void show() {
        System.out.println("姓名: " + name);
        System.out.println("在位时间: " + reignTime);
        System.out.println("政绩: " + achievements);
        System.out.println("描述: " + description);
    }
}